import request from "@/utils/request";

export const getArticle =async (obj)=>{
  return await request.get("/article", {
    params: {
      ...obj,
      status: 1
    }
  });
}

export const getArticleByClass =async (page,id)=>{
  return await request.get("/article", {
    params: {
      page,
      status: 1,
      classId: id
    }
  });
}

export const getArticleByTag = async (id,page)=>{
  return await request.get("/article/tag",{
    params:{
      id,page
    }
  })
}